<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>simvoc.input.mod_ldif.LDIFCopy</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="simvoc-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >SimVOC</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="simvoc-module.html">Package&nbsp;simvoc</a> ::
        <a href="simvoc.input-module.html">Package&nbsp;input</a> ::
        <a href="simvoc.input.mod_ldif-module.html">Module&nbsp;mod_ldif</a> ::
        Class&nbsp;LDIFCopy
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class LDIFCopy</h1><p class="nomargin-top"><span class="codelink"><a href="simvoc.input.mod_ldif-pysrc.html#LDIFCopy">source&nbsp;code</a></span></p>
<center>
<center>  <map id="uml_class_diagram_for_simvoc_i_9" name="uml_class_diagram_for_simvoc_i_9">
<area shape="rect" id="node161" href="simvoc.input.mod_ldif.LDIFCopy-class.html#__init__" title="See LDIFParser.__init__() and LDIFWriter.__init__()" alt="" coords="17,116,897,135"/>
<area shape="rect" id="node161" href="simvoc.input.mod_ldif.LDIFCopy-class.html#handle" title="Write single LDIF record to output file." alt="" coords="17,135,897,153"/>
<area shape="rect" id="node1" href="simvoc.input.mod_ldif.LDIFCopy-class.html" title="Copy LDIF input to LDIF output containing all data retrieved via URLs" alt="" coords="5,83,909,159"/>
<area shape="rect" id="node162" href="simvoc.input.mod_ldif.LDIFParser-class.html#parse" title="Continously read and parse LDIF records" alt="" coords="424,39,491,57"/>
<area shape="rect" id="node2" href="simvoc.input.mod_ldif.LDIFParser-class.html" title="Base class for a LDIF parser." alt="" coords="412,6,503,63"/>
</map>
  <img src="uml_class_diagram_for_simvoc_i_9.gif" alt='' usemap="#uml_class_diagram_for_simvoc_i_9" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<p>Copy LDIF input to LDIF output containing all data retrieved via 
  URLs</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Instance Methods</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-InstanceMethods"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="simvoc.input.mod_ldif.LDIFCopy-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">input_file</span>,
        <span class="summary-sig-arg">output_file</span>,
        <span class="summary-sig-arg">ignored_attr_types</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">max_entries</span>=<span class="summary-sig-default">0</span>,
        <span class="summary-sig-arg">process_url_schemes</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">base64_attrs</span>=<span class="summary-sig-default">None</span>,
        <span class="summary-sig-arg">cols</span>=<span class="summary-sig-default">76</span>,
        <span class="summary-sig-arg">line_sep</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">\n</code><code class="variable-quote">'</code></span>)</span><br />
      See LDIFParser.__init__() and LDIFWriter.__init__()</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="simvoc.input.mod_ldif-pysrc.html#LDIFCopy.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="simvoc.input.mod_ldif.LDIFCopy-class.html#handle" class="summary-sig-name">handle</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">dn</span>,
        <span class="summary-sig-arg">entry</span>)</span><br />
      Write single LDIF record to output file.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="simvoc.input.mod_ldif-pysrc.html#LDIFCopy.handle">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_parseAttrTypeandValue"></a><span class="summary-sig-name">_parseAttrTypeandValue</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Parse a single attribute type and value pair from one or more lines 
      of LDIF data
      <em>(Inherited from <a href="simvoc.input.mod_ldif.LDIFParser-class.html">simvoc.input.mod_ldif.LDIFParser</a>)</em></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="simvoc.input.mod_ldif-pysrc.html#LDIFParser._parseAttrTypeandValue">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_stripLineSep"></a><span class="summary-sig-name">_stripLineSep</span>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">s</span>)</span><br />
      Strip trailing line separators from s, but no other whitespaces
      <em>(Inherited from <a href="simvoc.input.mod_ldif.LDIFParser-class.html">simvoc.input.mod_ldif.LDIFParser</a>)</em></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="simvoc.input.mod_ldif-pysrc.html#LDIFParser._stripLineSep">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr class="private">
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="_unfoldLDIFLine"></a><span class="summary-sig-name">_unfoldLDIFLine</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Unfold several folded lines with trailing space into one line
      <em>(Inherited from <a href="simvoc.input.mod_ldif.LDIFParser-class.html">simvoc.input.mod_ldif.LDIFParser</a>)</em></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="simvoc.input.mod_ldif-pysrc.html#LDIFParser._unfoldLDIFLine">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="parse"></a><span class="summary-sig-name">parse</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Continously read and parse LDIF records
      <em>(Inherited from <a href="simvoc.input.mod_ldif.LDIFParser-class.html">simvoc.input.mod_ldif.LDIFParser</a>)</em></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="simvoc.input.mod_ldif-pysrc.html#LDIFParser.parse">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td colspan="2" class="table-header">
    <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tr valign="top">
        <td align="left"><span class="table-header">Method Details</span></td>
        <td align="right" valign="top"
         ><span class="options">[<a href="#section-MethodDetails"
         class="privatelink" onclick="toggle_private();"
         >hide private</a>]</span></td>
      </tr>
    </table>
  </td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">input_file</span>,
        <span class="sig-arg">output_file</span>,
        <span class="sig-arg">ignored_attr_types</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">max_entries</span>=<span class="sig-default">0</span>,
        <span class="sig-arg">process_url_schemes</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">base64_attrs</span>=<span class="sig-default">None</span>,
        <span class="sig-arg">cols</span>=<span class="sig-default">76</span>,
        <span class="sig-arg">line_sep</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">\n</code><code class="variable-quote">'</code></span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="simvoc.input.mod_ldif-pysrc.html#LDIFCopy.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>See LDIFParser.__init__() and LDIFWriter.__init__()</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>input_file</code></strong> - File-object to read the LDIF input from</li>
        <li><strong class="pname"><code>ignored_attr_types</code></strong> - Attributes with these attribute type names will be ignored.</li>
        <li><strong class="pname"><code>max_entries</code></strong> - If non-zero specifies the maximum number of entries to be read 
          from f.</li>
        <li><strong class="pname"><code>process_url_schemes</code></strong> - List containing strings with URLs schemes to process with urllib.
          An empty list turns off all URL processing and the attribute is 
          ignored completely.</li>
        <li><strong class="pname"><code>line_sep</code></strong> - String used as line separator</li>
    </ul></dd>
    <dt>Overrides:
        <a href="simvoc.input.mod_ldif.LDIFParser-class.html#__init__">LDIFParser.__init__</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<a name="handle"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">handle</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">dn</span>,
        <span class="sig-arg">entry</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="simvoc.input.mod_ldif-pysrc.html#LDIFCopy.handle">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Write single LDIF record to output file.</p>
  <dl class="fields">
    <dt>Overrides:
        <a href="simvoc.input.mod_ldif.LDIFParser-class.html#handle">LDIFParser.handle</a>
    </dt>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="simvoc-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >SimVOC</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0 on Fri Oct 23 11:04:35 2009
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
